

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Yozeev.BusinessLogic;

namespace Yozeev.EntityMapper.VerifiableSets
{
    public class VerifiableSetCfg : IEntityTypeConfiguration<VerifiableSet>
    {
        public void Configure(EntityTypeBuilder<VerifiableSet> builder)
        {

            builder.ToTable("VerifiableSets", YoYoAbpefCoreConsts.SchemaNames.Common);

            
			builder.Property(a => a.DeviceId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.VerifiableType).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.IsEnabled).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			//builder.Property(a => a.Device).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);


        }
    }
}


